Capture channel 0 configuration and enable
CAP0_EN | When set, capture on channel 0 is enabled |
CAP0_MODE | Edge of capture on channel 0 after prescaling. When bit0 is set to 1: enable capture on the negative edge, When bit1 is set to 1: enable capture on the positive edge. |
CAP0_PRESCALE | Value of prescaling on possitive edge of CAP0. Prescale value = PWM_CAP0_PRESCALE + 1 |
CAP0_IN_INVERT | when set, CAP0 form GPIO matrix is inverted before prescale |
CAP0_SW | Write 1 will trigger a software forced capture on channel 0 |